.bd-navbar .dropdown-menu .active .bi {
  display: inline-block !important;
}

.api h2 {
  margin-top: 4rem !important;
  margin-bottom: 2rem;
}

.extensions h3 {
  margin-bottom: 2rem;
}

.post-date {
  display: block;
  margin-top: -.5rem;
  margin-bottom: 1rem;
  color: #767676;
}

header.themes .bd-lead {
  max-width: 100%;
}

.online-editor img {
  max-width: 100%;
}

/* Custom code highlighting styles */
.bd-content pre {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 0.375rem;
  padding: 1rem;
  margin-bottom: 1rem;
  overflow-x: auto;
}

.bd-content pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Prism.js theme override */
[data-bs-theme="light"] .bd-content pre {
  background-color: #f8f9fa;
  border-color: #e9ecef;
}

[data-bs-theme="dark"] .bd-content pre {
  background-color: #212529;
  border-color: #495057;
}

/* Code block language label */
.bd-content pre::before {
  content: attr(data-language);
  display: block;
  background-color: #6c757d;
  color: white;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 0.375rem 0.375rem 0 0;
  margin: -1rem -1rem 1rem -1rem;
}

/* Inline code styles */
.bd-content code:not(pre code) {
  background-color: rgba(108, 117, 125, 0.1);
  color: #d63384;
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

[data-bs-theme="dark"] .bd-content code:not(pre code) {
  background-color: rgba(108, 117, 125, 0.3);
  color: #e685b5;
}

code[class*=language-],
pre[class*=language-] {
  text-shadow: none !important;
}

/* Supports */
.supports-container {
  margin-top: 3rem;
  text-align: center;
}

.supports {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  padding: 0 .5em 1em;
}

.support-description {
  -webkit-box-flex: 0;
  -ms-flex: 0 0 100%;
  flex: 0 0 100%;
  margin-bottom: 1em;
  color: #6c757d;
}

.support-item {
  position: relative;
  display: inline-block;
  margin: 3px;
  padding: .25rem;
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: .25rem;
  text-decoration: none;
}

.support-item:hover {
  background-color: rgba(108, 117, 125, .25098);
}

.support-avatar {
  min-height: 48px;
  min-width: 48px;
  vertical-align: middle;
}

.support-item.backer .support-avatar {
  max-height: 48px;
  max-width: 144px;
}

.support-item.bronze .support-avatar {
  max-height: 64px;
  max-width: 192px;
}

.support-item.gold .support-avatar {
  max-height: 80px;
  max-width: 240px;
}

.support-item.platinum .support-avatar {
  max-height: 96px;
  max-width: 288px;
}

.support-item.backer {
  border-color: #c0c0c0;
}

.support-item.bronze {
  border-color: #cd7f32;
}

.support-item.gold {
  border-color: #ffd700;
}

.support-item.platinum {
  border-color: #e5e4e2;
}

[data-bs-theme="dark"] .support-item.backer {
  border-color: #a0a0a0;
}

[data-bs-theme="dark"] .support-item.bronze {
  border-color: #d4a574;
}

[data-bs-theme="dark"] .support-item.gold {
  border-color: #ffd43b;
}

[data-bs-theme="dark"] .support-item.platinum {
  border-color: #b8c5d6;
}
